home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat7 / remezb.7 < prev    next >
Text File  |  1999-09-16  |  827b  |  67 lines

  1.  
  2.  
  3.  
  4. remezb(1)                      Scilab Function                      remezb(1)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   remezb - Minimax approximation of magnitude response
  13.  
  14. CALLING SEQUENCE
  15.   [an]=remezb(nc,fg,ds,wt)
  16.  
  17. PARAMETERS
  18.  
  19.   nc   : Number of cosine functions
  20.  
  21.   fg   : Grid of frequency points in [0,.5)
  22.  
  23.   ds   : Desired magnitude on grid fg
  24.  
  25.   wt   : Weighting function on error on grid fg
  26.  
  27.   an   : Cosine filter coefficients
  28.  
  29. DESCRIPTION
  30.   Minimax approximation of a frequency domain magnitude response. The approx-
  31.   imation takes the form h = sum[a(n)*cos(wn)] for n=0,1,...,nc. An FIR,
  32.   linear-phase filter can be obtained from the the output of the function by
  33.   using the following commands
  34.            hn(1:nc-1)=an(nc:-1:2)/2;
  35.            hn(nc)=an(1);
  36.            hn(nc+1:2*nc-1)=an(2:nc)/2;
  37.  
  38. AUTHOR
  39.   C. B.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.